//
//  TicketViewController.m
//  hai游～
//
//  Created by jakf_17 on 15/5/21.
//  Copyright (c) 2015年 jakf_17. All rights reserved.
//

#import "TicketViewController.h"
#import "MXPullDownMenu.h"
@interface TicketViewController ()<MXPullDownMenuDelegate>

@end

@implementation TicketViewController
- (void)dealloc
{
    [_array release];
    [_menuArray release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
//    self.view.backgroundColor = [UIColor whiteColor];
//    self.navigationController.navigationBar.translucent = NO;
//    self.menuArray = @[ @[ @"北京", @"大连", @"上海", @"天津", @"营口" , @"鲅鱼圈" , @"金州" ], @[@"全价票", @"打折票"], @[@"1日游", @"1日游", @"1日游", @"1日游", @"1日游"] ];
    NSArray *testArray;
    testArray = @[ @[ @"这是长字符串的测试数据,所以要足够长", @"通过实现", @"代理来对", @"下拉菜单", @"的点击做" , @"出反馈" , @"就是这样" ], @[@"使用数组", @"进行初始化"], @[@"食物", @"水果", @"面食", @"肉类", @"素食"] ];
    MXPullDownMenu *menu = [[MXPullDownMenu alloc] initWithArray:testArray selectedColor:[UIColor greenColor]];
    menu.delegate = self;
    menu.frame = CGRectMake(0, 200, menu.frame.size.width, menu.frame.size.height);
    [self.view addSubview:menu];
}
- (void)PullDownMenu:(MXPullDownMenu *)pullDownMenu didSelectRowAtColumn:(NSInteger)column row:(NSInteger)row
{
    NSLog(@"%ld -- %ld", (long)column, (long)row);
}


@end
